﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace diploma.core.localize
{
    /// <summary>
    /// 
    /// </summary>
    abstract public class AbstractLocalizator
    {
        /// <summary>
        /// 
        /// </summary>
        private AbstractDictionary dict = null;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        public string GetLocolizeWord(string key)
        {
            return dict[key];
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="newDictionary"></param>
        public void ChangeDictionary(AbstractDictionary newDictionary)
        {
            dict = newDictionary;
        }

    }
}
